package UILayer;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JTable;
import java.awt.Checkbox;
import javax.swing.table.DefaultTableModel;

public class VarePanel extends JPanel {
	private JTextField textField_1;
	private JTextField textField;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_10;
	private JTextField textField_11;
	private JTextField textField_12;
	private JTextField textField_13;
	private JTextField textField_2;
	private JTable table;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;

	/**
	 * Create the panel.
	 */
	public VarePanel() {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Find vare", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(10, 11, 247, 184);
		add(panel);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(10, 48, 102, 20);
		panel.add(textField);
		
		JLabel lblTelefonNr = new JLabel("Artikel nr.");
		lblTelefonNr.setBounds(10, 26, 66, 14);
		panel.add(lblTelefonNr);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(10, 153, 102, 20);
		panel.add(textField_3);
		
		JButton button = new JButton("Find");
		button.setBounds(148, 152, 89, 23);
		panel.add(button);
		
		JLabel lblNavn_1 = new JLabel("Varegrupper");
		lblNavn_1.setBounds(10, 131, 66, 14);
		panel.add(lblNavn_1);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(10, 101, 102, 20);
		panel.add(textField_4);
		
		JLabel lblAddresse_1 = new JLabel("Artikel navn");
		lblAddresse_1.setBounds(10, 79, 66, 14);
		panel.add(lblAddresse_1);
		
		JPanel panel_1 = new JPanel();
		panel_1.setLayout(null);
		panel_1.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Opret vare", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 206, 247, 86);
		add(panel_1);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(10, 47, 105, 20);
		panel_1.add(textField_1);
		
		JLabel lblTelefonNr_1 = new JLabel("Artikel nr.");
		lblTelefonNr_1.setBounds(10, 25, 82, 14);
		panel_1.add(lblTelefonNr_1);
		
		JButton button_1 = new JButton("Tilf\u00F8j");
		button_1.setBounds(148, 46, 89, 23);
		panel_1.add(button_1);
		
		JPanel panel_3 = new JPanel();
		panel_3.setLayout(null);
		panel_3.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Varer oplysninger", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_3.setBounds(10, 328, 637, 152);
		add(panel_3);
		
		JLabel lblNavn = new JLabel("Artikel nr.");
		lblNavn.setBounds(55, 27, 49, 14);
		panel_3.add(lblNavn);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(128, 21, 174, 20);
		panel_3.add(textField_7);
		
		textField_8 = new JTextField();
		textField_8.setColumns(10);
		textField_8.setBounds(128, 49, 174, 20);
		panel_3.add(textField_8);
		
		JLabel lblAddresse = new JLabel("Artikel navn");
		lblAddresse.setBounds(55, 55, 86, 14);
		panel_3.add(lblAddresse);
		
		JLabel lblBy = new JLabel("Placering");
		lblBy.setBounds(55, 83, 70, 14);
		panel_3.add(lblBy);
		
		textField_10 = new JTextField();
		textField_10.setColumns(10);
		textField_10.setBounds(128, 80, 42, 20);
		panel_3.add(textField_10);
		
		JLabel lblTlfNr = new JLabel("Antal");
		lblTlfNr.setBounds(55, 114, 86, 14);
		panel_3.add(lblTlfNr);
		
		textField_11 = new JTextField();
		textField_11.setColumns(10);
		textField_11.setBounds(128, 111, 174, 20);
		panel_3.add(textField_11);
		
		JLabel lblEmail = new JLabel("V\u00E6gt");
		lblEmail.setBounds(347, 86, 49, 14);
		panel_3.add(lblEmail);
		
		textField_12 = new JTextField();
		textField_12.setColumns(10);
		textField_12.setBounds(420, 83, 116, 20);
		panel_3.add(textField_12);
		
		textField_13 = new JTextField();
		textField_13.setColumns(10);
		textField_13.setBounds(180, 80, 122, 20);
		panel_3.add(textField_13);
		
		JButton btnGem = new JButton("Gem");
		btnGem.setBounds(335, 110, 89, 23);
		panel_3.add(btnGem);
		
		textField_2 = new JTextField();
		textField_2.setBounds(420, 24, 116, 20);
		panel_3.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblRabat = new JLabel("Pris");
		lblRabat.setBounds(347, 27, 35, 14);
		panel_3.add(lblRabat);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(420, 55, 116, 20);
		panel_3.add(textField_5);
		
		JLabel lblVaregruppe = new JLabel("Varegruppe");
		lblVaregruppe.setBounds(347, 58, 56, 14);
		panel_3.add(lblVaregruppe);
		
		JButton btnFjern = new JButton("Fjern");
		btnFjern.setBounds(447, 110, 89, 23);
		panel_3.add(btnFjern);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Vareregister", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_2.setBounds(267, 11, 380, 281);
		add(panel_2);
		panel_2.setLayout(null);
		
		table = new JTable();
		table.setColumnSelectionAllowed(true);
		table.setCellSelectionEnabled(true);
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"New column", "New column", "New column"
			}
		));
		table.getColumnModel().getColumn(0).setPreferredWidth(45);
		table.getColumnModel().getColumn(1).setPreferredWidth(134);
		table.getColumnModel().getColumn(2).setPreferredWidth(105);
		table.setBounds(10, 44, 360, 212);
		panel_2.add(table);

	}
}
